
import { $Http } from '@/config/service/http';

export async function getMenusList(){
  const listPermissions = await $Http.api('system/auth/permissionTreeData', { terminalType: '1' }, 'post-form');
  // const listPermissions = await $Http.api('menu/treeData', { parentId:'0', route: name.replace(/\//g,"")}, 'post');
  let menuList = [];
  
  if( listPermissions.data && listPermissions.data.length ){
    menuList = listPermissions.data
  }
  
  return menuList
}

